import request from '@/utils/request'

// 查询招商资源列表
export function listZsSource(query) {
  return request({
    url: '/life/zsSource/list',
    method: 'get',
    params: query
  })
}

// 查询招商资源详细
export function getZsSource(id) {
  return request({
    url: '/life/zsSource/' + id,
    method: 'get'
  })
}

// 新增招商资源
export function addZsSource(data) {
  return request({
    url: '/life/zsSource',
    method: 'post',
    data: data
  })
}

// 修改招商资源
export function updateZsSource(data) {
  return request({
    url: '/life/zsSource',
    method: 'put',
    data: data
  })
}

// 删除招商资源
export function delZsSource(id) {
  return request({
    url: '/life/zsSource/' + id,
    method: 'delete'
  })
}
